#include "mallardduck.h"
#include "noquack.h"

#include <QCoreApplication>
#include "canquack.h"

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    Duck *duck = new MallardDuck();
    duck->quack();

    QuackBehavior *quack = new CanQuack();
    duck->setQuackBehavior(quack);
    duck->quack();

    QuackBehavior *no_quack = new NoQuack();
    duck->setQuackBehavior(no_quack);
    duck->quack();

    return a.exec();
}
